import { createStore } from 'vuex'

export default createStore({
  state: {
    num:1000,
    mphone:'',
    userInfo:null, // can not read xx  of null 
    isCollapse:false
  },
  mutations: {
    changeNum(state,payload){
      state.num += payload;
    },
    changemphone(state,payload){
      state.mphone =  payload;
    },
    changeUserInfo(state,payload){
      state.userInfo = payload;
    },
    changeisCollapse(state,payload){
      state.isCollapse = payload;
    }
  },
  actions: {
  },
  modules: {
  }
})
